from __future__ import unicode_literals

from django.db import models

from django.contrib.auth.models import AbstractUser
# Create your models here.


class UserProfile(AbstractUser):
    nick_name = models.CharField(max_length=20, verbose_name=u"昵称", default="")
    # 性别 取值范围 是两个选一
    gender = models.CharField(max_length=10, choices=(("male", u"男"), ("female", u"女")), verbose_name=u"性别", default="male" )

    class Meta:
        verbose_name = "用户信息"
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.username

